//
//  LSegmentControl.h
//  CarCare
//
//  Created by ileo on 15/3/19.
//  Copyright (c) 2015年 baozun. All rights reserved.
//

#import <UIKit/UIKit.h>


//选择器
@interface LSegmentControl : UIView

@property (nonatomic, assign) NSInteger selectedIndex;

@property (nonatomic, strong) UIColor *selectedColor;
@property (nonatomic, strong) UIColor *normalColor;
@property (nonatomic, strong) UIColor *borderColor;

@property (nonatomic, strong) UIFont *font;
@property (nonatomic, strong) UIColor *normalTextColor;
@property (nonatomic, strong) UIColor *selectedTextColor;

@property (nonatomic, assign) CGFloat gap;

-(instancetype)initWithFrame:(CGRect)frame items:(NSArray *)items;

-(void)addAction:(void(^)(NSInteger index))action;

@end
